package org.alex.samples.model;

import java.io.Serializable;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name="exam_role")
public class ExamRole implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	@Id
	@Column(name = "role_id")
	private Integer roleId;
	
	@Column(name = "name")
	private String roleName;
	
	@OneToMany(mappedBy="role")
	private Set<ExamUserRole> examUserRole;
	
	public ExamRole() {

	}

	public Integer getRoleId() {
		return roleId;
	}

	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	
	

}
